﻿using FileService.Infrastructure.Repository;
using FileService.Infrastructure.Services;
using Microsoft.Extensions.Configuration;

namespace FileService.Infrastructure;

class ModuleInitializer : IModuleInitializer
{
    public void Initialize(IServiceCollection services)
    {
        services.AddHttpContextAccessor();
        services.AddScoped<ConfigurationManager>();
        services.AddScoped<IStorageClient, AliOSSStorageClient>();
        services.AddScoped<IFSRepository, FSRepository>();
        services.AddHttpClient();
    }
}